*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
}
ul{
    display: flex;
    justify-content: space-around;
}
img{
    width: 400px;
}
.pic1,.pic2,.pic3{
    position: relative;
    overflow: hidden;
    height: 283.43px;
    
}
.pic1 div{
    color: #fff;
    position: absolute;
    bottom: -15px;
    left: 20px;

}
.pic2 div{
    color: #fff;
    position: absolute;
    bottom: -15px;
    left: 20px;

}
.pic3 div{
    color: #fff;
    position: absolute;
    bottom: -15px;
    left: 20px;

}
li:nth-child(1):hover .pic1 div{
    transform: translateY(-35px);
    transition: all 0.5s;
    
}

li:nth-child(2):hover .pic2 div{
    transform: translateY(-35px);
    transition: all 0.5s;
    
}
li:nth-child(3):hover .pic3 div{
    transform: translateY(-35px);
    transition: all 0.5s;
    
}
li:nth-child(1):hover .pic1 header{
    opacity: 1;
    transition: all 0.5s;
}
li:nth-child(2):hover .pic2 header{
    opacity: 1;
    transition: all 0.5s;
}
li:nth-child(3):hover .pic3 header{
    opacity: 1;
    transition: all 0.5s;
}
/*   ..........................................      */

li:nth-child(1):not(:hover) .pic1 div{
    bottom: -15px;
    transition: all 0.5s;
    
}

li:nth-child(2):not(:hover) .pic2 div{
    bottom: -15px;
    transition: all 0.5s;
    
}
li:nth-child(3):not(:hover) .pic3 div{
    bottom: -15px;
    transition: all 0.5s;
    
}
li:nth-child(1):not(:hover) .pic1 header{
    opacity: 0;
    transition: all 0.5s;
}
li:nth-child(2):not(:hover) .pic2 header{
    opacity: 0;
    transition: all 0.5s;
}
li:nth-child(3):not(:hover) .pic3 header{
    opacity: 0;
    transition: all 0.5s;
}


.pic1 p{
margin-bottom: 10px;
}
h6{
    margin-top: 30px;
    
}
span{
    color: red;
}
header{
    background-image: linear-gradient(transparent , rgba(0,0,0,0.5));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 99%;
    opacity: 0;
}

